﻿using System;

using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Organized;

namespace Game
{
    /// <summary>
    /// The background screen sits behind all the other menu screens.
    /// It draws a background image that remains fixed in place regardless
    /// of whatever transitions the screens on top of it may be doing.
    /// </summary>
    class MainMenuScreen : MenuScreen
    {


        public MainMenuScreen(String Name) :base(Name)             
        {
            MenuEntries.Add(GameplayScreen.MenuTitle);
            MenuEntries.Add("Exit");
        }

       
        public override void Initialize()
        {
          

            base.Initialize();
        }


        public override void OnSelectEntry(int entryIndex)
        {
            switch (entryIndex)
            {
                case 0:                   
                    Disable();
                    GameScreen gameplayScreen = new GameplayScreen("GameplayScreen");
                    GameScreen gameHudScreen = new GameHUDScreen("GameHUDScreen");
                    break;
                case 1:

                    break;
            }
        }



        public override void Update()
        {
            KeyboardDevice keyboard = Engine.Services.GetService<KeyboardDevice>();
            HandleInput(keyboard);
            
            base.Update();
        }


       

        public override void Draw(ComponentPredicate DrawPredicate)
        {
            base.Draw(DrawPredicate);
        }


    }
}
